﻿@using System.Collections
@using StevensReceipts.Domain
@using StevensReceipts.Repository;
@model StevensReceipts.Web.Models.ViewModels.BusinessDetailsViewModel

@{
    ViewBag.Title = "RegisterDetails";
}

<h2>RegisterDetails</h2>
@using (Html.BeginForm())
{
    <div>Organization Name & Type</div>
    @Html.HiddenFor(model => model.Id)
<table>
    <tr>
        <td>Display Name</td>
        <td>Legal/Trading Name</td>
        <td>Organization Type</td>
        <td>What is your line of business?</td>
    </tr>
    <tr><td>@Html.TextBoxFor(model => model.BusinessName)</td>
        <td>@Html.TextBoxFor(model => model.LegalName)</td>
        <td>@Html.EnumDropDownListFor(model=>Model.BusinessType)</td>
        <td>@Html.TextBoxFor(model => model.DescriptionLine)</td>
    </tr>
    <tr>
        <td>Name as it should appear</td>
        <td>the legal name of the organization</td>
        <td>select your business type</td>
        <td>a description line to highlight your business</td>
    </tr>
</table>

<table>
    <tr><td>
            <table>
                <tr><td colspan="2">Post Address</td></tr>
                <tr><td>Address Line</td>
                    <td>@Html.TextBoxFor(modelItem => Model.PostalAddress.AddressLine1)</td>

                </tr>
                <tr>
                <td>Suburb</td> 
                <td>@Html.TextBoxFor(modelItem => Model.PostalAddress.Suburb)</td>
                <tr>
                
                <tr>
                <td>City</td> 
                <td>@Html.TextBoxFor(modelItem => Model.PostalAddress.City)</td>
                <tr>
                <tr>
                <td>Country</td>
                <td>@Html.TextBoxFor(modelItem => Model.PostalAddress.Country)</td>
                <tr>
                <tr>
                <td>Post Code</td>
                <td>@Html.TextBoxFor(modelItem => Model.PostalAddress.PostCode)</td>
                <tr>
                </tr>
            </table>
        </td>
        
        <td>
            <table>
                <tr><td colspan="2">Physical Address</td></tr>
                <tr><td>Address Line</td><td>@Html.TextBoxFor(modelItem => Model.PhysicalAddress.AddressLine1)</td></tr>
                <tr><td>Suburb</td><td>@Html.TextBoxFor(modelItem => Model.PhysicalAddress.Suburb)</td></tr>
                <tr><td>City</td><td>@Html.TextBoxFor(modelItem => Model.PhysicalAddress.City)</td></tr>
                <tr><td>Country</td><td>@Html.TextBoxFor(modelItem => Model.PhysicalAddress.Country)</td></tr>
                <tr><td>Post Code</td><td>@Html.TextBoxFor(modelItem => Model.PhysicalAddress.PostCode)</td></tr>
            </table>
        </td>
        
        <td>
            <table>
                <tr><td>Telephone</td></tr>
                <tr><td>@Html.TextBoxFor(modelItem => Model.Telephone)</td></tr>
                <tr><td>Fax</td></tr>
                <tr><td>@Html.TextBoxFor(modelItem => Model.Fax)</td></tr>
                <tr><td>Mobile</td></tr>
                <tr><td>@Html.TextBoxFor(modelItem => Model.Mobile)</td></tr>
            </table>
        </td>
    </tr>
</table>

<div>
    <button type="submit" value="Submit" name="Submit">Submit</button>
</div>
}